package com.cdks.wuxiu.api.service;

import java.util.List;

import com.cdks.wuxiu.api.model.dto.MoodReplyInfoDTO;
import com.cdks.wuxiu.api.model.dto.MoodTopicInfoDTO;
import com.cdks.wuxiu.entity.mongodb.MoodTransInfo;
import com.cdks.wuxiu.entity.mysql.MoodReplyInfo;
import com.cdks.wuxiu.entity.mysql.MoodTopicInfo;


/**
 * 心情服务类
 */
public interface MoodService {
    int saveTopic(MoodTopicInfo topicInfo);
    int saveReply(MoodReplyInfo replyInfo);
    int addReplyCount(long topicId);
    int setTopicById(MoodTopicInfo topicInfo);
    int setReplyById(MoodReplyInfo replyInfo);
    int saveTransContent(MoodTransInfo transInfo);

    List<MoodTopicInfoDTO> getTopicList(long userId, int type, int groupId, int page);
    List<MoodReplyInfoDTO> getReplyList(long userId, long topicId, long fatherId, int type, int page);
    List<MoodTopicInfo> getTopicByUser(long userId, int page, int isSelf);

    MoodTopicInfo getTopicById(long topicId);
    MoodReplyInfo getReplyById(long replyId);
    MoodTransInfo getTransByTopicId(long topicId);
    MoodTopicInfoDTO getDetailByTopicId(long topicId);
}
